package com.uenpay.im;

import android.app.Application;
import android.content.Context;

import com.qyx.android.activity.QiYunXinApplication;
import com.qyx.android.config.AppConfig;
import com.uenpay.service.application.BaseFakeApplication;

import java.io.File;

/**
 * Created by liulou on 2017/5/11.
 * desc:
 */

public class QiYunXinFakeApplication extends QiYunXinApplication implements BaseFakeApplication {
    @Override
    public void onLoad(Application application) {
        String applicationName = application.getPackageName();
        File file = new File(GetExternalStorageDir() + applicationName + File.separator);
        if (!file.exists()) {
            file.mkdirs();
        }
        AppConfig.getInstance().SetRootPath(GetExternalStorageDir() + applicationName + File.separator);
    }

    @Override
    public void init(Context context) {

    }
}
